<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 28400
  Date: 2023/11/9
  Time: 13:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="register" method="post">
        用户名:<input type="text" name="userName"><br>
        密码:<input type="password" name="userPass"><br>
        真实姓名:<input type="text" name="realName"><br>
        类型喜好:<br>
        <c:forEach items="${hobbyTypes}" var="hobby">
            <input type="checkbox" name="hobbyType" value="${hobby.hobbyId}">${hobby.hobbyName}
        </c:forEach>
        <br>
        <button>注册</button>
    </form>
    ${msg}
</body>
</html>
